//
//  NSColoredView.m
//  FlashController
//
//  Created by Martin Schiøth Dyrby on 8/14/12.
//  Copyright 2012 Molamil. All rights reserved.
//

#import "NSColoredView.h"

@implementation NSColoredView

@synthesize myColor;

- (id)initWithFrame:(NSRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code here.
    }
    
    myColor = [NSColor blueColor];
    
    return self;
}

- (void)drawRect:(NSRect)dirtyRect
{
    [myColor set];
    NSRectFill([self bounds]);
}

- (void)changeColor:(NSColor*) aColor
{
    myColor = [aColor retain];
}

@end
